package cc.risingsun.wing.dai;

import cc.risingsun.wing.apache.dbutils.QueryRunner;

/**
 * 
 * @author iron.yin@gmail.com
 * @sina 2012-8-27
 */

public abstract class SQLRepository {

	protected QueryRunner query;

	IDataSourceFactory factory;
	
	public SQLRepository(){
		factory =  new C3P0DataSourceFactory();
		query = new QueryRunner(factory.getDataSource());
	}
	
	protected enum DataSource{
		C3P0,BoneCP;
	}
}
